package com.lanjiyin.cloud.common.constant;

public class CommonConstants {

	// 用户token异常
	// 用户不存在/登录状态失效
	public static final Integer EX_USER_INVALID_CODE = 40101;
	// 用户名或密码错误
	public static final Integer EX_USER_PASS_INVALID_CODE = 40001;
	// 客户端token异常
	// 权限不足
	public static final Integer EX_CLIENT_INVALID_CODE = 40301;
	public static final Integer EX_CLIENT_FORBIDDEN_CODE = 40331;
	// 系统内部错误
	public static final Integer EX_OTHER_CODE = 500;
	public static final String CONTEXT_KEY_USER_ID = "currentUserId";
	public static final String CONTEXT_KEY_USERNAME = "currentUserName";
	public static final String CONTEXT_KEY_USER_NAME = "currentUser";
	public static final String CONTEXT_KEY_USER_TOKEN = "currentUserToken";
	public static final String JWT_KEY_USER_ID = "userId";
	public static final String JWT_KEY_NAME = "name";

	// 设备标识
	public static final String CLIENT_DEVICE_ANDROID = "ANDROID";
	public static final String CLIENT_DEVICE_IOS = "IOS";
	public static final String CLIENT_DEVICE_WXMINI = "WXMINI";

	// 系统标识
	public static final String SYSTEM_NAME = "system";
	// 企业
	public static final String ROLE_TYPE_COMPANY = "company";
}
